<div id="content" ng-app="SJ-APP">
    <div class="outer" ng-controller="review_contest_controller">
        <div class="inner bg-light lter">
            <div class="row">
                <div class="col-lg-12">
                    <div class="box">
                        <header>
                            <div class="icons"><i class="fa icon-table"></i></div>
                            <h5>大赛阶段</h5>
                        </header>
                        <div class="body">
                            <table class="table table-bordered table-condensed table-hover table-striped dataTable no-footer"
                                   role="grid" aria-describedby="dataTable_info"
                                   style="text-align: center;width: 400px;">
                                <tbody>
                                <tr role="row" class="even" ng-repeat="item in result.contestSteps">
                                    <td>@{item.name}@</td>
                                    <td>
                                        <button type="button" class="btn btn-primary btn-xs btn-line"
                                                ng-click="selected_step(item.id,item.name)"
                                                ng-hide="item.shows == false">公示
                                        </button>
                                    </td>
                                </tr>
                                </tbody>
                                <thead>
                                <tr role="row">
                                    <th class="sorting_disabled" rowspan="1" colspan="1" aria-label="阶段名"
                                        style="text-align: center;">阶段名
                                    </th>
                                    <th class="sorting_disabled" rowspan="1" colspan="1" aria-label="公示"
                                        style="text-align: center;">公示
                                    </th>
                                </tr>
                                </thead>
                            </table>
                            <span>当前选择阶段 : <span style="color: red">@{cur_name}@</span></span>
                        </div>
                        <header>
                            <div class="icons"><i class="fa icon-table"></i></div>
                            <h5 id="main_title"><span>@{result.title}@</span>—大赛评审</h5>
                        </header>
                        <div id="collapse4" class="body">
                            <a id="save_btn_action" class="btn btn-primary btn-line" ng-click="btn_submit()">保存所有更改</a>

                            <div class="col-lg-2">
                                <select class="form-control ng-pristine ng-untouched ng-valid"
                                        ng-model="item.contestCategoryId" ng-change="select_category()"
                                        ng-options="x.id as x.name for x in result.contestCategorys">
                                    <option value="">-- 请选择分类 --</option>
                                </select>
                            </div>
                            <div class="form-group" style="margin-top: 10px;margin-bottom: 55px;">
                                <label class="control-label col-lg-1" style="margin-top: 7px;">公示标题</label>

                                <div class="col-lg-4">
                                    <input name="role-name-search" type="text"
                                           class="validate[required] form-control"
                                           value="" id="role-name-search" placeholder="公示标题"
                                           ng-model="showName">
                                </div>
                                <div style="color: red">* 公示标题必填</div>
                            </div>
                            <div id="dataTable_wrapper" class="dataTables_wrapper no-footer">
                                <table id="dataTable"
                                       class="table table-bordered table-condensed table-hover table-striped dataTable no-footer"
                                       role="grid" aria-describedby="dataTable_info" style="width: 1096px;">
                                    <tbody>
                                    <tr role="row" class="even" ng-repeat="item in awards">
                                        <td class="sorting_1">
                                            <select class="form-control" data-tag="select" ng-model="item.prizeId"
                                                    ng-options="x.id as x.name  for x in cur_prizes">
                                                <option value="">-- 请选择奖项 --</option>
                                            </select>
                                        </td>
                                        <td>@{$index + 1}@</td>
                                        <td><input class="form-control"
                                                   data-tag="price" ng-model="item.resourceId"></td>
                                        <td><img
                                                style="height:100px;width:auto;" ng-src="@{item.url}@" /></td>
                                        <td>
                                            <!-- 大赛简介 -->
                                            <div class="form-group">
                                                <div>
                                                    <textarea class="form-control ng-pristine ng-untouched ng-valid"
                                                              ng-model="item.conment"></textarea>
                                                </div>
                                            </div>
                                        </td>
                                        <td>
                                            <button type="button" class="btn btn-primary btn-xs btn-line"
                                                    ng-click="add_awards($index)">新增
                                            </button>
                                            <button type="button" class="btn btn-primary btn-xs btn-line"
                                                    ng-click="remove_awards($index)">删除
                                            </button>
                                        </td>
                                    </tr>
                                    </tbody>
                                    <thead>
                                    <tr role="row">
                                        <th class="sorting_asc" tabindex="0" aria-controls="dataTable" rowspan="1"
                                            colspan="1" aria-sort="ascending" aria-label=": 以降序排列此列">奖项名称
                                        </th>
                                        <th class="sorting" tabindex="0" aria-controls="dataTable" rowspan="1"
                                            colspan="1" aria-label="排名: 以升序排列此列" style="width: 30px;">排名
                                        </th>
                                        <th class="sorting_disabled" rowspan="1" colspan="1" aria-label="作品ID">作品ID</th>
                                        <th class="sorting_disabled" rowspan="1" colspan="1" aria-label="预览"
                                            style="width: 133px;">预览
                                        </th>
                                        <th class="sorting_disabled" rowspan="1" colspan="1" aria-label="评语">评语</th>
                                        <th class="sorting_disabled" rowspan="1" colspan="1" aria-label="操作"
                                            tyle="width: 133px;">操作
                                        </th>
                                    </tr>
                                    </thead>
                                </table>
                                <div class="row">
                                    <div class="col-xs-6">
                                        <div class="dataTables_info" id="dataTable_info" role="status"
                                             aria-live="polite">显示第 1 至 4 项结果，共 4 项
                                        </div>
                                    </div>
                                    <div class="col-xs-6"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<link rel="stylesheet" href="/css/contest/main.css"/>

<link rel="stylesheet" href="/lib/bootstrap-tagsinput-master/src/bootstrap-tagsinput.css">
<link rel="stylesheet" href="/lib/bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.css">
<script type="text/javascript" src="/js/angular.min.js"></script>
<script type="text/javascript" src="/js/app.js"></script>


<link rel="stylesheet"
      href="/contest_public/assets/lib/dataTables/css/dataTables.bootstrap.css"/>
<script src="/contest_public/assets/lib/dataTables/js/jquery.dataTables.js" type="text/javascript"></script>
<script src="/contest_public/assets/lib/dataTables/js/dataTables.bootstrap.js" type="text/javascript"></script>
<script type="text/javascript" src="/js/contest/review.js"></script>


</div><!-- /.row -->
</div>
</div><!-- /.outer -->
</div><!-- /#content -->